<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript">
        function add() {
            var name=$("#name").val();
            if(name!=null){
                $("#cForm").submit();
            }
        }

    </script>

</head>
<body>

<form method="post" action="/cartigy/save.html" id="cForm">
    <table border="1">
        <tr><td>新闻分类<input type="text" name="name" id="name"/></td></tr>
        <tr><td><input type="button" value="添加" onclick="add()"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="取消"/></td></tr>
    </table>
</form>

</body>
</html>
